package ink.charon.novel.core;

import ink.charon.novel.core.processor.CatProcessor;
import us.codecraft.webmagic.Spider;

public class BatchSpider {


    public void doWork() {
        Spider.create(new CatProcessor())
                .addUrl("http://book.zongheng.com/store.html", "http://book.zongheng.com/store/c0/c0/b1/u0/p1/v9/s9/t0/u0/i1/ALL.html")
                .thread(1)
                .run();
    }


    public static void main(String[] args) {
        new BatchSpider().doWork();
    }
}
